var _loc2_ = _root.createEmptyMovieClip("ab" + _root.crc,_root.getNextHighestDepth());
var _loc4_ = _loc2_.attachMovie("ark" + ty,"ark",_loc2_.getNextHighestDepth());
_loc2_._x = - random(800);
if(random(10) % 2 == 0)
{
_loc2_._x *= -1;
_loc2_._x += 600;
}
_loc2_._y = -100;
_loc2_._destx = 60 + x * 40;
_loc2_._desty = 40 + y * 15;
_loc2_.inPlace = false;
_loc2_.update = _root.updateArkanoidBlock;
_loc2_.remove = false;
_loc2_.arkBlock = true;
_loc2_.hp = 1;
_loc2_._alpha = 60;
if(ty == 5)
{
_loc2_.hp = 2;
}
_root.cr_queue.push(_loc2_);
};
makeArkanoidGrid = function()
{
var _loc4_ = [[5,5,5,5,5,5,5,5,5,5,5,5,5],[2,2,2,4,2,2,5,3,3,1,3,3,3],[2,2,4,4,2,2,5,3,3,1,1,3,3],[2,4,4,4,4,4,5,1,1,1,1,1,3],[4,4,4,4,4,4,5,1,1,1,1,1,1],[2,4,4,4,4,4,5,1,1,1,1,1,3],[2,2,4,4,2,2,5,3,3,1,1,3,3],[2,2,2,4,2,2,5,3,3,1,3,3,3],[5,5,5,5,5,5,5,5,5,5,5,5,5]];
var _loc3_ = _root.createEmptyMovieClip("aInfo",_root.getNextHighestDepth());
var _loc4_ = _loc3_.attachMovie("infoBox" + id,"infoBox" + getTimer(),_loc3_.getNextHighestDepth());
_loc4_.box.msg.text = msg;
_loc3_._alpha = 80;
_loc3_._x = 300;
_loc3_._y = 225;
_loc4_.play();
_loc4_.box.continueButton.onRelease = function()
{
_root.playSFX("pageflip");
this._parent._parent.play();
_root.tuteBox = _root.tuteBox + 1;
};
if(id == 0)
{
_loc4_.box.skipButton.onRelease = function()
{
this._parent._parent.play();
_root.tuteBox = 7;
};
}
};
mainTute1 = function()
{
if(!_root.gamePaused)
{
_root.updateSpeed();
_root.thing.update();
_root.frame.update();
var _loc3_ = new Array();
for(var _loc4_ in _root.ef)
{
if(!_root.ef[_loc4_].remove)
{
_root.ef[_loc4_].update();
_loc3_.push(_root.ef[_loc4_]);
}
else
{
_root.ef[_loc4_].removeMovieClip();
}
}
_root.ef = _loc3_;
if(_root.tuteBoxOn == false)
{
switch(_root.tuteBox)
{
case 0:
_root.showInfoBox(0,"Just a few things you need to know before playing...\n\n1. You control the blue blob that follows the mouse cursor around.");
break;
case 1:
_root.showInfoBox(1,"2. This bar shows how many lives you have left. Preserve them by avoiding collision with dangerous mines ( ).");
break;
case 2:
_root.showInfoBox(2,"3. This is the time you spent playing. The longer you play, the more features and powerups will become unlocked. The game also speeds up slightly over time.");
break;
case 3:
_root.showInfoBox(3,"4. These are your points. You earn them mainly by collecting crystals ( , , ).\n\nYou get more points for collecting longer series of crystals of the same color.");
break;
case 4:
_root.showInfoBox(4,"5. This is the current game speed. Score is based on speed, so you get more points the faster you go.");
break;
case 5:
_root.showInfoBox(5,"6. Powerups like these ( , , ) can offer new abilities or alter the game world to create special challenges. Press <SPACEBAR> anytime to bring up the HELP menu and read more about powerups.");
break;
case 6:
_root.showInfoBox(6,"That\'s pretty much it.\n\nTry collecting some crystals while avoiding the mines.\n\nRemember you can press <SPACEBAR> to bring up the menu.");
_root.showInfoBox(0,"Welcome to \'free play mode\'\nJust a few things you need to know before playing...\n\n1. You control the blue blob that follows the mouse cursor around.");
break;
case 1:
_root.showInfoBox(1,"2. This bar shows how many lives you have left. Preserve them by avoiding collision with dangerous mines ( ).");
break;
case 2:
_root.showInfoBox(2,"3. This is the time you spent playing. The game speeds up slightly over time.");
break;
case 3:
_root.showInfoBox(3,"4. These are your points. You earn them mainly by collecting crystals ( , , ). You get more points for collecting longer series of crystals of the same color.\n\nIn free play you won\'t be able to submit your final score.");
break;
case 4:
_root.showInfoBox(4,"5. This is the current game speed. Score is based on speed, so you get more points the faster you go.");
break;
case 5:
_root.showInfoBox(5,"6. Powerups like these ( , , ) can offer new abilities or alter the game world to create special challenges. In free play mode they\'re all enabled from the beginning!");
break;
case 6:
_root.showInfoBox(6,"That\'s pretty much it.\nHave fun experimenting in free play mode. Try collecting some crystals while avoiding the mines.\n\nRemember you can press <SPACEBAR> to bring up the menu at any time.");